home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
AutoUpdate
/
updatepath.pyo
(
.txt
)
< prev
Wrap
Python Compiled Bytecode
|
2008-10-13
|
1KB
|
46 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
import config
import sys
win_versions = ((10758, 'update'), (11204, 'gzip'), (15784, '11205'), (sys.maxint, 'update.yaml'))
mac_versions = ((sys.maxint, 'digsbymac_sanjou.txt'),)
def get_manifest_location():
if sys.REVISION == 'dev':
raise Exception('Wrong digsby revision!')
versions = win_versions
if sys.platform.startswith('darwin'):
versions = mac_versions
plat = config.platformName
ext = {
'win': 'txt',
'mac': 'mac' }.get(plat, plat)
def addext(s, ext):
if not ext:
return s
else:
return s + '.' + ext
for rev, fname in versions:
if '.' in fname:
_ext = ''
else:
_ext = ext
if sys.REVISION <= rev:
return addext(fname, _ext)
continue
return addext(fname, _ext)
def get_manifest_ext_for_plat(plat):
return {
'win': '',
'mac': '.mac',
'gtk': '.gtk' }.get(plat, '.%s' % plat)